package com.ruoyi.zikao.service.impl;

import java.util.Collections;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.zikao.mapper.ZikaoPreEducationMapper;
import com.ruoyi.zikao.domain.ZikaoPreEducation;
import com.ruoyi.zikao.service.IZikaoPreEducationService;

/**
 * 考前学历Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-14
 */
@Service
public class ZikaoPreEducationServiceImpl implements IZikaoPreEducationService 
{
    @Autowired
    private ZikaoPreEducationMapper zikaoPreEducationMapper;

    /**
     * 查询考前学历
     * 
     * @param id 考前学历主键
     * @return 考前学历
     */
    @Override
    public ZikaoPreEducation selectZikaoPreEducationById(Long id)
    {
        return zikaoPreEducationMapper.selectZikaoPreEducationById(id);
    }

    /**
     * 查询考前学历列表
     * 
     * @param zikaoPreEducation 考前学历
     * @return 考前学历
     */
    @Override
    public List<ZikaoPreEducation> selectZikaoPreEducationList(ZikaoPreEducation zikaoPreEducation)
    {
        return zikaoPreEducationMapper.selectZikaoPreEducationList(zikaoPreEducation);
    }

    @Override
    public List<ZikaoPreEducation> selectZikaoPreEducationAll() {
        return zikaoPreEducationMapper.selectZikaoPreEducationAll();
    }

    /**
     * 新增考前学历
     * 
     * @param zikaoPreEducation 考前学历
     * @return 结果
     */
    @Override
    public int insertZikaoPreEducation(ZikaoPreEducation zikaoPreEducation)
    {
        return zikaoPreEducationMapper.insertZikaoPreEducation(zikaoPreEducation);
    }

    /**
     * 修改考前学历
     * 
     * @param zikaoPreEducation 考前学历
     * @return 结果
     */
    @Override
    public int updateZikaoPreEducation(ZikaoPreEducation zikaoPreEducation)
    {
        return zikaoPreEducationMapper.updateZikaoPreEducation(zikaoPreEducation);
    }

    /**
     * 批量删除考前学历
     * 
     * @param ids 需要删除的考前学历主键
     * @return 结果
     */
    @Override
    public int deleteZikaoPreEducationByIds(Long[] ids)
    {
        return zikaoPreEducationMapper.deleteZikaoPreEducationByIds(ids);
    }

    /**
     * 删除考前学历信息
     * 
     * @param id 考前学历主键
     * @return 结果
     */
    @Override
    public int deleteZikaoPreEducationById(Long id)
    {
        return zikaoPreEducationMapper.deleteZikaoPreEducationById(id);
    }
}
